const api = require("../../../utils/api")
const getwxphone = require("../../../utils/getwxphone")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    index: 0,
    index2: 0,
    index3: 0,
    dishi: ['----请选择招考地市----'],
    nsh: ['----请选择招考农商行----'],
    phone: 0,
    theList: ''
  },


  onLoad: function (options) {
    var that = this;
    api.load(options)
  

  },

  getPhoneNumber(e) {
    var _ = this;
    const info = {
      area: wx.getStorageSync('area'),
      agent: wx.getStorageSync('agent'),
      page: wx.getStorageSync('page'),
      activeId: 21
    }

    getwxphone(e.detail.code, 52534, 'biaodan', info)
      .then(res => {
        console.log(res);
        wx.navigateTo({
          url: '../out/out',
        })
        
      })
      .catch(err => {
        console.log(err);
      })
  },
 
  tozgjy:function(){
    wx.navigateToMiniProgram({
      appId: 'wx6b75078563b749b0',
      path: 'pages/yitiyima/yitiyima?scene=0c3978de66e94627b62b3d5ce965ea2f&mis=ch29220',
      envVersion: 'release',
      success(res) {
        // 打开成功
      }
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onshow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onshareAppMessage: function () {
    var that = this;
    return {
      title: '2023山东选调生面试训练题集',
      path: 'pages/xdsss/login/login?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page
    }
  },
  /**分享到朋友圈*/
  onshareTimeline: function () {
    var that = this;
    return {
      title: '2023山东选调生面试训练题集',
      path: 'pages/xdsss/login/login?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page
    }
  }
})